<h2><?php __('Grab Tweets');?></h2>
<table cellpadding="0" cellspacing="0">
<tr>
        <th><?php echo $this->Paginator->sort('_id');?></th>
        <th><?php echo $this->Paginator->sort('user');?></th>
        <th><?php echo $this->Paginator->sort('text');?></th>
        <th><?php echo $this->Paginator->sort('source');?></th>
        <th><?php echo $this->Paginator->sort('replyto');?></th>
        <th><?php echo $this->Paginator->sort('created_at');?></th>
        <th class="actions"><?php __('Actions');?></th>
</tr>
<?php
$i = 0;
foreach ($grabTweets as $grabTweet):
    $class = null;
    if ($i++ % 2 == 0) {
        $class = ' class="altrow"';
    }
?>
<tr<?php echo $class;?>>
    <td><?php echo $grabTweet['GrabTweet']['_id']; ?>&nbsp;</td>
    <td><?php echo $grabTweet['GrabTweet']['user']['screen_name']; ?>&nbsp;</td>
    <td><?php echo $grabTweet['GrabTweet']['text']; ?>&nbsp;</td>
    <td><?php echo $grabTweet['GrabTweet']['source']; ?>&nbsp;</td>
    <td>
    <?php if (!empty($grabTweet['GrabTweet']['replyto'])): ?>
    <?php echo $grabTweet['GrabTweet']['replyto']; ?>&nbsp;
    <?php echo $grabTweet['GrabTweet']['in_reply_to_screen_name']; ?>&nbsp;
    <?php echo $grabTweet['GrabTweet']['in_reply_to_status_id']; ?>
    <?php else: ?>
    &nbsp;
    <?php endif; ?>
    </td>
    <td><?php echo $grabTweet['GrabTweet']['created_at']; ?>&nbsp;</td>
    <td class="actions">
        <?php echo $this->Html->link(__('View', true), array('action' => 'view', $grabTweet['GrabTweet']['_id'])); ?>
        <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $grabTweet['GrabTweet']['_id'])); ?>
        <?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $grabTweet['GrabTweet']['_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $grabTweet['GrabTweet']['_id'])); ?>
    </td>
</tr>
<?php endforeach; ?>
</table>
<p>
<?php
echo $this->Paginator->counter(array(
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
));
?>	</p>

<div class="paging">
    <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $this->Paginator->numbers();?>
|
    <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
</div>
